package com.fxhy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fxhy.bean.VerifyCode;
import com.fxhy.repository.VerifyCodeRepository;

@Service
public class VerifyCodeService {
	@Autowired
	private VerifyCodeRepository kaptchaRepository;
	
	public VerifyCode saveKaptcha(VerifyCode kaptchaCode) {
		return kaptchaRepository.saveAndFlush(kaptchaCode);
    }
}
